import React, { Component } from 'react';
import { render } from 'react-dom';
import { Router, Route, Link, IndexRoute, Redirect, hashHistory } from 'react-router';
import Counter from './counter';
import Main from './main';

export default class AppMain extends Component {
    constructor(props) {
        super(props);
    }

    render() {
        return (
            <Router history={hashHistory}>
                <Route path="/" component={Counter}/>
                <Route path="/2" component={Main}/>
            </Router>
        );
    }
}
